<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Welcome</title>

    </h:head>
    <h:body style="background-color: #90b4bd" >
        <center>
            <!--            <h1 style="font-style: italic; font: oblique" >Welcome to Share Me Now</h1>-->
            <p:fieldset legend="Welcome to Share Me Now">
                <h:form>

                    <div align="center" style="text-align: right">

                        <table align="center" >
                            <tr >
                                <td><p:graphicImage value="/resources/images/welcome.gif" /></td>
                                <td >

                                    <p:panel id="panel"  style="margin-bottom:10px;">  

                                        <h:panelGrid columns="2" cellspacing="0" cellpadding="2">  
                                            <h:outputLabel style="text-align: right" value="I'm" for="firstLastName" />
                                            <p:inputText value="${myUserController.selected.firstName}" id="firstLastName" />
                                            <h:outputLabel value="My mail is" for="userName" />
                                            <p:inputText value="${myUserController.selected.userName}" id="userName" />
                                            <h:outputLabel value="and password is" for="password" />
                                            <p:password id="password" value=    "${myUserController.selected.password}" feedback="false" label="Password" required="true"/>  

                                        </h:panelGrid>  
                                    </p:panel>  


                                    <h:outputLabel  value="(You will be automatically registered if mail is not found)" style="font-size:12px "/>
                                    <br />
                                    <p:commandButton ajax="false" action="${myUserController.login()}" value="Login"/>
                                    <h:messages/>
                                </td>

                            </tr>
                        </table>
                    </div>
                </h:form>
            </p:fieldset>
        </center>        
    </h:body>
</html>

